using System;
using System.Collections.Generic;
using System.Text;

namespace FE
{
    public class ResourceMap
    {
        Dictionary<Type, Resource> Map = new Dictionary<Type,Resource>();
        public ResourceMap()
        {

        }

        public Resource this [Type t] {
            set {
                Map[t] = value;
            }
            get {
                if (Map.ContainsKey(t)) return Map[t];
                else return new Resource();
            }
        }
    }
    public class Resource {
        public Type type;
    }
}
